#coding:utf-8
from django.forms import ModelForm
from django import forms
from django.contrib.auth.models import User
from django.utils.translation import ugettext_lazy as _

class NewthingForm(forms.Form):
    TYPE_CHOICES = (
            ('0','请选择'),
            ('1','图书'),
            ('2','数码'),
            ('3','衣物饰品'),
            ('4','杂七杂八'),)
    detailtype = forms.ChoiceField(label = "闲置物品类别:",choices=TYPE_CHOICES,widget=forms.Select(attrs={'id':'detailtype'}))
    detailname = forms.CharField(required = False,label = "标题：",widget = forms.TextInput(attrs = {'id' : 'detailname'}))
    detailnote = forms.CharField(required = False,label = "物主自述",widget = forms.Textarea(attrs = {'id' : 'detailnote','style' : 'height : 360px'}))
    detailpic = forms.FileField(required = False,label = "图片",widget = forms.FileInput(attrs = {'name':'detailpic','onchange' : 'imgFilter(this);'}))
    detailisbn = forms.CharField(label = "输入你想添加的图书ISBN号（耐心哦）:",required = False,widget = forms.TextInput(attrs = {'placeholder':'ISBN'}))

class CommentForm(forms.Form):
    replynote = forms.CharField(label = "你的回应:",widget = forms.Textarea(attrs={'id':'replynote','style':'height:160px;width:534px;'}))
